<include file="Public/loginheader"/>
<div class="loginbox">
	<div class="wrapper">
		<div class="right-login fr">
			<div class="login-title">
				<h3>找回密码</h3>
			</div>

			<div class="login-content">
				<form id="login_form"  method="post" novalidate="novalidate">
					<dl>
						<dt>用户名</dt>
						<dd style="min-height:54px;">
							<input type="text" class="text valid" name="member_name" id="member_name" autocomplete="off">
							
						</dd>
					</dl>
					<dl>
						<dt>邮&nbsp;&nbsp;&nbsp;箱 </dt>
						<dd style="min-height:54px;">
							<input type="text" class="text valid" name="email" id="email">
							
						</dd>
					</dl>
					<dl>
						<dt>验证码</dt>
						<dd style="min-height:54px;">
							<input type="text" name="captcha" class="text fl" id="captcha" maxlength="4" size="10" style="width: 50px">
							<img src="{:U('get_verify')}" id="codeimg" class="fl" style="" onclick="changecode()"> 
                            <a href="javascript:changecode();" style="margin-left: 15px;">看不清，换一张</a>
							<label></label>
						</dd>
					</dl>
					<dl>
						<dt>&nbsp;</dt>
						<dd>
							<input type="submit" class="submit" value="找回密码" name="Submit">


							<a class="forget" href="{:U('index')}">登录</a>
                            </dd>
					</dl>

				</form>
				<dl style="margin: 10px 0;">
					<dt>&nbsp;</dt>
					<dd>还不是本站会员？立即<a title="" href="{:U('Login/register')}" class="register">注册</a></dd>
				</dl>
			</div>
		</div>
		<strong>分享知识，发表您的观点！</strong>
<div class="clear"></div>
	</div>
</div>


<div class="ico-box">
	<div class="wrapper">
		<ul>
			<li><img src="__IMG__/1.png" alt=""><p>分享知识</p></li>
			<li><img src="__IMG__/2.png" alt=""><p>多元观点</p></li>
			<li><img src="__IMG__/3.png" alt=""><p>发表见解</p></li>
			<li><img src="__IMG__/4.png" alt=""><p>自由评论</p></li>
		</ul>
		<div class="clear"></div>
	</div>
</div>

<div class="foot">
	<div class="wrapper">
      <p> Copyright © 2004-2015 icp号:123456789  </p>    
    </div>   
</div>


<div class="weixin">	
	<p>扫描二维码</p>
	<p>关注辩论网微信</p>
	<img style="margin-top:20px;" src="__IMG__/wx.png" width="120" height="120" alt="">	
</div>	
<!-- <script type="text/javascript">
$(document).ready(function(){
	$('.valid').blur(function(){
		if(!$.trim($(this).val())){
			$(this).addClass('errorText');
		}else{
			$(this).removeClass('errorText');
		}
	});
});
$(function(){
	$("#login_form").validate({
		rules:{
			member_name:{required:true},
			pwd:{required:true}
		},
		messages: {
			member_name:{required:'请填写帐号'},
			pwd:{required:'请填写密码'}
		}
	});
	if(0>=0)
	{
		 
	}else{
		 
	}
});
function changecode(){
	document.getElementById('codeimg').src="{:U('get_verify')}"+"?"+Math.random();
}
</script> --> 
<script>
$(document).ready(function(){
	$("#login_form").validate({
        errorPlacement: function(error, element){
            var error_td = element.parent('dd');
            error_td.find('label').hide();
            error_td.append(error);
        },
        onkeyup: false,
		rules: {	
			member_name: {
				 required : true	
			},
			email:  {
				 required : true,
				 email	  : true
			},
			captcha :  {
				 required : true,
				 remote   : {
					url : "{:U('check_verify')}",
					type:'get',
					data:{
						captcha : function(){
							return $('#captcha').val();
						}
					},
					complete: function(data) {
                        if(data.responseText == 'false'){
							document.getElementById('codeimg').src="{:U('get_verify')}"+"?"+Math.random();  
                        }
                    }
				 }				 	
			}
		},
		messages: {
			member_name: {
				 required : '用户名不能为空'	
			},
			email: {
				 required : '邮箱不能为空',
				 email : '邮箱格式不正确'
			},
			captcha : {
				 required : '验证码不能为空',
				 remote : '验证码不正确'	
			}
		}
	});
});
</script>
<script type="text/javascript">
function fleshVerify()
{
	var timenow = new Date().getTime();
	document.getElementById('codeimg').src= "{:U('get_verify')}?"+timenow;
}
function changecode()
{
	document.getElementById('codeimg').src="{:U('get_verify')}?"+Math.random();  
}
</script>
</body>
</html>